package com.bailian.system.service.impl;

import java.util.List;
import com.bailian.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bailian.system.mapper.BlParkServiceMapper;
import com.bailian.system.domain.BlParkService;
import com.bailian.system.service.IBlParkServiceService;

/**
 * 园区仓库服务Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-04
 */
@Service
public class BlParkServiceServiceImpl implements IBlParkServiceService 
{
    @Autowired
    private BlParkServiceMapper blParkServiceMapper;

    /**
     * 查询园区仓库服务
     * 
     * @param serviceId 园区仓库服务主键
     * @return 园区仓库服务
     */
    @Override
    public BlParkService selectBlParkServiceByServiceId(Long serviceId)
    {
        return blParkServiceMapper.selectBlParkServiceByServiceId(serviceId);
    }

    /**
     * 查询园区仓库服务列表
     * 
     * @param blParkService 园区仓库服务
     * @return 园区仓库服务
     */
    @Override
    public List<BlParkService> selectBlParkServiceList(BlParkService blParkService)
    {
        return blParkServiceMapper.selectBlParkServiceList(blParkService);
    }

    /**
     * 新增园区仓库服务
     * 
     * @param blParkService 园区仓库服务
     * @return 结果
     */
    @Override
    public int insertBlParkService(BlParkService blParkService)
    {
        blParkService.setCreateTime(DateUtils.getNowDate());
        return blParkServiceMapper.insertBlParkService(blParkService);
    }

    /**
     * 修改园区仓库服务
     * 
     * @param blParkService 园区仓库服务
     * @return 结果
     */
    @Override
    public int updateBlParkService(BlParkService blParkService)
    {
        blParkService.setUpdateTime(DateUtils.getNowDate());
        return blParkServiceMapper.updateBlParkService(blParkService);
    }

    /**
     * 批量删除园区仓库服务
     * 
     * @param serviceIds 需要删除的园区仓库服务主键
     * @return 结果
     */
    @Override
    public int deleteBlParkServiceByServiceIds(Long[] serviceIds)
    {
        return blParkServiceMapper.deleteBlParkServiceByServiceIds(serviceIds);
    }

    /**
     * 删除园区仓库服务信息
     * 
     * @param serviceId 园区仓库服务主键
     * @return 结果
     */
    @Override
    public int deleteBlParkServiceByServiceId(Long serviceId)
    {
        return blParkServiceMapper.deleteBlParkServiceByServiceId(serviceId);
    }
}
